package com.rmt.www.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.rmt.www.constant.ArtifactType;
import com.rmt.www.dao.ArtifactDao;
import com.rmt.www.dao.ProjectDao;
import com.rmt.www.dao.UserDao;
import com.rmt.www.service.SREManageFeatureService;
import com.rmt.www.service.SREManageRequirementService;
import com.rmt.www.vo.Artifact;
import com.rmt.www.vo.FeatureArtifact;
import com.rmt.www.vo.Project;
import com.rmt.www.vo.RequirementArtifact;
import com.rmt.www.vo.User;


public class UpdateRequirementAction extends ActionSupport{
	public int aid;
	private SREManageRequirementService SREManageRequirementService;
	private RequirementArtifact artifact;
	
	public SREManageRequirementService getSREManageRequirementService() {
		return SREManageRequirementService;
	}
	public void setSREManageRequirementService(
			SREManageRequirementService sREManageRequirementService) {
		SREManageRequirementService = sREManageRequirementService;
	}
	public RequirementArtifact getArtifact() {
		return artifact;
	}
	public void setArtifact(RequirementArtifact artifact) {
		this.artifact = artifact;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}

	
	public String execute(){
		artifact=SREManageRequirementService.getRequirementArtifactById(aid);
		return "success";
	}
}
